$.extend($.validationEngineLanguage.allRules, {
    switch: {
        "func": function (field, rules, i, options) {
            if (!$(field).val()) {
                return false;
            }
            return true;
        },
        "alertText": "* 请选择内容"
    }
    // my define
    , "price": {
        "regex": /^-?\d+\.?\d{2,2}$/,
        "alertText": "* 请输入含2位小数的数字"
    }
    , "positive_integer": {
        "regex": /^([1-9][0-9]*)$/,
        "alertText": "请输入正整数"
    }
    , "negative_integer": {
        "regex": /^-\d+$/,
        "alertText": "请输入负整数"
    }
    , "integer": {
        "regex": /^-?\d+$/,
        "alertText": "请输入整数"
    }
    , "mobile": {
        "regex": /^1\d{10}$/,
        "alertText": "手机号码格式不正确"
    }
});